function checkUserExists() {
	$('#usernameLoading').hide();
	$('#username').blur(function() {
		$('#usernameLoading').show();
		$.post("checkUser.do", {
			username: $('#username').val()
		}, function(response){
			$('#usernameResult').fadeOut();
			setTimeout("finishAjax('usernameResult', '"+escape(response)+"')", 400);
		});
		return false;
	});
}

function finishAjax(id, response) {
	$('#usernameLoading').hide();
	$('#'+id).html(unescape(response));
	$('#'+id).fadeIn();
} //finishAjax